package com.kun.vo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
@ToString
@NoArgsConstructor
public class ProcessDefinitionVo {

    private String name;

    private String key;

    private int version;

    @NotBlank(message = "资源名不能为空")
    private String resourceName;

    @NotBlank(message = "部署ID不能为空")
    private String deploymentId;

    public ProcessDefinitionVo(String name, String key, int version, String resourceName, String deploymentId) {
        this.name = name;
        this.key = key;
        this.version = version;
        this.resourceName = resourceName;
        this.deploymentId = deploymentId;
    }
}
